package java_9_12;

import java.util.Calendar;
import java.util.Scanner;

/*
:输出今年的国庆节（10.1）是周几
*/
public class Test_5 {
    public static void main(String[] args) {
        String []s={"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
        Scanner in=new Scanner(System.in);
        System.out.println("请输入今年年份");
        int i = in.nextInt();
        Calendar c=Calendar.getInstance();
        c.set(Calendar.YEAR,i);
        c.set(Calendar.MONTH,9);
        c.set(Calendar.DATE,1);
        int i1 = c.get(Calendar.DAY_OF_WEEK);
        System.out.println("国庆节是"+s[i1-1]);
    }
}
